<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
	<head>
		<title>个人中心</title>




		<!-- Demo page code -->

		<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}

.content1 {
	min-width: 400px;
	position: relative;
	min-height: 650px;
	background: #fff;
	margin-left: 240px;
	margin-top: 6px;
}


</style>


	</head>
	<body class="">

		<jsp:include page="top.jsp"></jsp:include>
		<!-- 内容 开始 -->
		<div class="content" >

			<div class="header">

				<h1 class="page-title">
					个人中心
				</h1>
			</div>

			<ul class="breadcrumb">
				<li>
					<a href="/sell_food/userview/index.jsp">主页</a>
					<span class="divider">/</span>
				</li>
				<li class="active">
					个人中心
				</li>
			</ul>

			<div class="container-fluid">
				<div class="row-fluid">


					<div class="well" style="background-image:url(tm.png) ;background-color:transparent;">
						<ul class="nav nav-tabs">
							<li class="active">
								<a href="#home" data-toggle="tab">基本资料</a>
							</li>
							<li>
								<a href="#profile" data-toggle="tab">密码更改</a>
							</li>
						</ul>

						<div id="myTabContent" class="tab-content">
							<s:if test='%{#request.infoUpdate == "ok"}'>
								<div class="alert alert-success" style="width:400px">
									<button type="button" class="close" data-dismiss="alert">
										×
									</button>
									<strong>小提示：</strong> 修改成功！
								</div>
							</s:if>
							<s:elseif test='%{#request.infoUpdate == "no"}'>
								<div class="alert alert-error" style="width:400px">
									<button type="button" class="close" data-dismiss="alert">
										×
									</button>
									<strong>小提示：</strong> 修改失败！
								</div>
							</s:elseif>
							<s:else>
								<div class="alert alert-info" style="width:400px">
									<button type="button" class="close" data-dismiss="alert">
										×
									</button>
									<strong>小提示：</strong> 请别乱输入信息，谢谢！
								</div>
							</s:else>
							<div class="tab-pane active in" id="home">
								<form id="tab" action="/sell_food/updateinfo" method="post">
									<s:fielderror></s:fielderror>
									<label>
										用户账号
									</label>
									<input name="user.userName" type="text"
										value="${loginUser.userName}"
										class="input-xlarge focused uneditable-input" style="height:30px ;width:400px">
									<label>
										默认地址
									</label>
									<input name="defaultAddress" type="text"
										value="${loginUser.defaultAddress}"
										class="input-xlarge focused" style="height:30px ;width:400px">
									<label>
										默认电话
									</label>
									<input name="defaultPhone" type="text"
										value="${loginUser.defaultPhone}" class="input-xlarge focused" style="height:30px ;width:400px">
									<label>
										备注
									</label>
									<input name="remark" type="text" value="${loginUser.remark}"
										class="input-xlarge focused" style="height:30px ;width:400px">
									<div class="btn-toolbar">
										<button class="btn btn-primary">
											<i class="icon-save"></i> 保存
										</button>
									</div>
								</form>
							</div>
							<div class="tab-pane fade" id="profile">
								<form id="tab2" action="/sell_food/updatepassword" method="post">
									<input type="hidden" name="user.userName"
										value="${loginUser.userName}">
									<label>
										旧密码
									</label>
									<input name="oldpassword" type="password"
										class="input-xlarge focused" style="height:30px ;width:400px">
									<label>
										新密码
									</label>
									<input name="newpassword" type="password"
										class="input-xlarge focused" style="height:30px ;width:400px">
									<label>
										新密码
									</label>
									<input name="repassword" type="password"
										class="input-xlarge focused" style="height:30px ;width:400px">
									<div class="btn-toolbar">
										<button class="btn btn-primary">
											<i class="icon-save"></i> 保存
										</button>
									</div>
								</form>
							</div>
						</div>

					</div>
					

				</div>
			</div>
		</div>
		<script type="text/javascript">
	$("[rel=tooltip]").tooltip();
	$(function() {
		$('.demo-cancel-click').click(function() {
			return false;
		});
	});
</script>
	</body>
</html>
